<% if cart && !cart.items.empty? %>
  <table class="order_list">
    <thead>
      <tr>
        <th>图片</th>
        <th>名称</th>
        <th>数量</th>
        <th>小计</th>
        <th>移除</th>
      </tr>
    </thead>
    <%= render(:partial => "/store/cart_item", :collection => cart.items) %>
    <tr>
      <td colspan="3">合计</td>
      <td class="total-cell">
        <span id="cart_total_price" class="yen">
          <%= cart.total_price %>
        </span>
      </td>
    </tr>
  </table>

  <a href="/orders/new" title="结账">
    <img src="/images/checkout.gif" alt="结账" />
  </a>
  <a href="/store/empty_cart"  title="清空" >
    <img src="/images/empty_cart.gif" alt="清空" />
  </a>
<%else%>
  <div id="empty_cart">
    <h4>您的购物车还是空的，赶快行动吧！</h4>
  </div>
<%end%>